package com.amm.gwt.gwtgaeuploader.client.service;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;


@RemoteServiceRelativePath("GAEUploadRPC")
public interface GAEUploadRPC extends RemoteService {
    /**
     * Utility/Convenience class.
     * Use GAEUploadRPC.App.getInstance() to access static instance of ImageRPCAsync
     */
    public static class App {
        private static final GAEUploadRPCAsync ourInstance = (GAEUploadRPCAsync) GWT.create(GAEUploadRPC.class);

        public static GAEUploadRPCAsync getInstance() {
            return ourInstance;
        }
    }

    public String getUploadUrl(String myAppengineHost);

    public String getServingUrl(String myAppengineHost, String uploadUrl);
}
